package com.gzz.orchid.context.domain.rbac;

import com.gzz.orchid.context.domain.rbac.entity.ModuleDo;
import com.gzz.orchid.context.infrastructure.definition.Status;

import java.io.Serializable;
import java.util.List;

/**
 * @author higmd
 */
public interface IModuleRepository {

    ModuleDo findByCode(String code);

    List<ModuleDo> findListByIds(Serializable[] ids);

    int batchDelete(Serializable[] ids);

    int batchChangeStatus(Status status, List<ModuleDo> doList);

    void save(ModuleDo moduleDo);
}
